﻿using Gp.Scripts.Core;

namespace Gp.Scripts.Data.Equip {
    [WeaponPhrase("偷袭", "当一个单位能够被偷袭时，对其进行攻击的基础攻击伤害提升至500%", true)]
    public class AmbushPhrase : WeaponTypePhrase {
        public override ModifierValue DamageBonus(BaseUnit target) {
            return BattleLogic.CanBeAmbush(target) ? new ModifierValue(0, 4) : ModifierValue.Zero;
        }
    }
}